<include file="public@header"/>
</head>
<body>
	<div class="wrap ">
		<ul class="nav nav-tabs">
			<li><a href="{:url('customer/index')}">{:lang('ADMIN_CUSTOMER_INDEX')}</a></li>
			<li><a href="{:url('customer/add')}">{:lang('ADMIN_CUSTOMER_ADD')}</a></li>
			<li class="active"><a href="{:url('customer/edit',array('id'=>$id))}">编辑客户</a></li>
		</ul>
		<form class="form-horizontal js-ajax-form" action="{:url('Customer/edit_post')}" method="post" >
			<fieldset>
                <div class="control-group">
               		 <input type="hidden" name="id" value="{$id}">
					<label class="control-label">{:lang('USER_NAME')}</label>
					<div class="controls">
						<input type="text" name="deceased_name" value="{$deceased_name}" id="deceased_name" class="form-control"/>
						<span class="form-required"></span>
					</div>
				</div>
				<div class="control-group">
					<label class="control-label">{:lang('GENDER')}</label>
                    <div class="controls">
                        <select name="deceased_sex" class="form-control">
							<option value="1"><php>echo $deceased_sex==1?'男':'女'</php></option>
							<option value="2"><php>echo $deceased_sex==1?'女':'男'</php></option>
                        </select>
                        <span class="form-required"></span>
                    </div>
				</div>
				<div class="control-group">
					<label class="control-label">{:lang('STATUS')}</label>
                    <div class="controls">
                        <select name="deceased_status" class="form-control">
							<option value="1"> <php>echo $deceased_status==1?'健在':'已故'</php></option>
							<option value="2"> <php>echo $deceased_status==1?'已故':'健在'</php></option>
                        </select>
                        <span class="form-required"></span>
                    </div>
				</div>
                <div class="control-group">
					<label class="control-label">{:lang('BUY_NAME')}</label>
					<div class="controls">
						<input type="text" name="customer_name" value="{$customer_name}" id="customer_name" class="form-control" required/>
						<span class="form-required">*</span>
					</div>
				</div>
                <div class="control-group">
					<label class="control-label">{:lang('CONTACT_PHONE')}</label>
					<div class="controls">
						<input type="text" name="customer_phone" value="{$customer_phone}" id="customer_phone" class="form-control" required/>
						<span class="form-required">*</span>
					</div>
				</div>
                <div class="control-group">
					<label class="control-label">{:lang('BUDGET')}</label>
					<div class="controls">
						<input type="text" name="price_budget" value="{$price_budget}" id="price_budget" class="form-control"/>
						<span class="form-required"></span>
					</div>
				</div>
                <div class="control-group">
					<label class="control-label">{:lang('INTENTION')}</label>
					<div class="controls">
						<textarea name="customer_desc" class="form-control">{$customer_desc}</textarea>
						<span class="form-required"></span>
					</div>
				</div>

			</fieldset>
			<div class="form-actions">
				<button type="submit" class="btn btn-primary js-ajax-submit">{:lang('EDIT')}</button>
				<a class="btn btn-default" href="javascript:history.back(-1);">{:lang('BACK')}</a>
			</div>
		</form>
	</div>
	<script type="text/javascript" src="__STATIC__/js/admin.js?v={:time()}"></script>

</body>
</html>